header {
  display: none;
}
.nav {
  height: 0.6rem;
  display: flex;
  font-size: 0.28rem;
  justify-content: space-between;
  animation: move_in_r 500ms;
}
.nav a {
  text-decoration: none;
  line-height: 0.6rem;
  margin: 0 0.1rem;
}


.unit {
  display: flex;
  margin: 0.2rem 0;
  height: 3.8rem;
}

.unit .score {
  flex: 4;
  font-size: 0.4rem;
  margin: 0 0.1rem;
  line-height: 0.8rem;
}
.unit .control {
  flex: 6;
  position: relative;
}
.unit .control>div {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: #606266;
  position: absolute;
  line-height: 1rem;
  text-align: center;
  font-size: 0.5rem;
  color: #fff;
}
.unit .control .up {
  left: 50%;
  top: 0.25rem;
  transform: translateX(-50%);
}
.unit .control .down {
  left: 50%;
  bottom: 0.25rem;
  transform: translateX(-50%);
}
.unit .control .left {
  left: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
}
.unit .control .right {
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
}


.on_off{
  width: 4rem;
  height: 1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.28rem;
  color: #fff;
  border: none;
  background-color: #606266;
}

.none {
  display: none;
}

@media all and (min-width: 1260px) {
  header {
    display: block;
    height: 0.8rem;
    display: flex;
    justify-content: space-between;
    background-color: #606266;
    color: #fff;
  }
  header .logo{
    flex: 1;
    font-size: 0.32rem;
    line-height: 0.8rem;
    margin-left: 0.2rem;
  }
  header .user {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
  header .user a, header .user span {
    text-decoration: none;
    color: #fff;
    font-size: 0.18rem;
    line-height: 0.8rem;
    margin: 0 0.2rem;
  }
  .nav {
    width: 10rem;
    height: 0.6rem;
    font-size: 0.18rem;
    margin: 0 auto;
    justify-content: flex-end;
  }
  .nav a {
    line-height: 0.6rem;
    margin: 0 0.1rem;
  }
  .nav a:first-child {
    display: none;
  }

  canvas {margin: 0 auto;}
  .on_off{
    width: 3rem;
    height: 0.6rem;
    font-size: 0.18rem;
    cursor: pointer;
  }
  .unit {
    width: 10rem;
    margin: 0.2rem auto;
    height: 1rem;
  }
  .unit .score {
    flex: 4;
    font-size: 0.28rem;
    margin: 0 0.1rem;
    line-height: 0.4rem;
  }
  .unit .control {
    display: none;
  }
}